package org.zjt.auth.security;

import org.springframework.security.crypto.password.PasswordEncoder;

public class EncryptPW implements PasswordEncoder{

	public String encode(CharSequence paramCharSequence) {
		return paramCharSequence.toString().toUpperCase();
	}

	public boolean matches(CharSequence rawPassword, String paramString) {
		System.out.println(rawPassword+"\t\t"+paramString);
		return encode(rawPassword).equals(paramString);
	}

}
